import ajax from './ajax'

// 新增/修改用户
export const addUser = (data) => ajax('/manage/user/'+(data._id?'update' : 'add'), data, 'POST')
// 获取用户列表
export const userList = () => ajax('/manage/user/list')
// 删除用户
export const delUser = (userId) => ajax('/manage/user/delete', {userId}, 'POST')